cmake_minimum_required(VERSION 3.16)

project(signalSlotTest LANGUAGES CXX)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
# find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core)

add_executable(signalSlotTest
  main.cpp
  SignalSlot.cpp
  SignalHandle.h ThreadPool.h Singleton.h
  BlockingQueue.h

)
target_link_libraries(signalSlotTest)


add_executable(singleton_test singleton_test.cpp Singleton.h)
target_link_libraries(singleton_test)


add_executable(overrideTest overrideTest.cpp)
target_link_libraries(overrideTest)

add_executable(funcPtr funcPtr.cpp)
target_link_libraries(funcPtr)


# include(GNUInstallDirs)
# install(TARGETS signalSlotTest
#     LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
#     RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# )
